Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pure-utilities

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pure-utilities

pure-utilities

  • 1.4.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

pure-utilities

npm build

A set of pure functions.

Table of Contents

Background

A pure function is a function that given the same input will give you the same output. It also does not have any side effects. The library contains many pure functions, which by design, do not depend on other non built-in functions. This limitation makes it simpler to consume the functions for inlining (e.g. by bundlers or compilers).

Install

npm install pure-utilities

Usage

import { flatten } from 'pure-utilities/object'
console.log(flatten({ hello: { world: '1234' } })) // { 'hello.world': '1234' }

Maintainers

@emilos

Contibuting

All contributions are highly appreciated. Please feel free to open new issues and send PRs. All new function names need to be lowercased and independent on other non built-in functions. Please consider updating the docs and fixtures as a part of the PRs.

License

MIT

FAQs

Package last updated on 27 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc